package entity

import (
	"time"

	"gorm.io/gorm"
	"shqsoft.cn/pas3ui/base"
)

//IndiAccoFlowChNew
type IndiAccoFlowChNew struct {
	ACID   int       `gorm:"column:ACID;primary_key;"`
	CUID   int       `gorm:"column:CUID"`
	CUNM   string    `gorm:"column:CUNM"`
	UTNM   string    `gorm:"column:UTNM"`
	ITNM   string    `gorm:"column:ITNM"`
	OPDT   time.Time `gorm:"column:OPDT"`
	ACNO   string    `gorm:"column:ACNO"`
	BANO   string    `gorm:"column:BANO"`
	ISDIVI int       `gorm:"column:ISDIVI"`
	IDNO   string    `gorm:"column:IDNO"`
	CDNO   string    `gorm:"column:CDNO"`
	CYNM   string    `gorm:"column:CYNM"`
	CLDT   time.Time `gorm:"column:CLDT"`
	ACBL   float64   `gorm:"column:ACBL"`
}

//TableName
func (IndiAccoFlowChNew) TableName() string {
	return "V_INDI_ACCO_FLOW_NEW"
}
func (i *IndiAccoFlowChNew) AfterFind(tx *gorm.DB) (err error) {
	i.IDNO = base.IndoTM(i.IDNO)
	i.ACNO = base.AcnoTM(i.ACNO)
	i.BANO = base.AcnoTM(i.BANO)
	i.CDNO = base.CdnoTM(i.CDNO)
	return
}
func IndiAccoFlowChNewEF() base.EntityFunc {
	return func() interface{} {
		entity := IndiAccoFlowChNew{}
		return &entity
	}
}
func IndiAccoFlowChNewESF() base.EntitiesFunc {
	return func() interface{} {
		var entities []IndiAccoFlowChNew
		return &entities
	}
}

func init() {
	base.DaoPoolObj.Put("IndiAccoFlowChNew", base.NewDefaultDao(IndiAccoFlowChNewEF(), IndiAccoFlowChNewESF(), nil, "ch"))
}
